package com.wuliming.gulimall.product.feign;

import com.wuliming.common.utils.R;
import com.wuliming.to.es.SkuEsModel;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "gulimall-search")
@Component
public interface SearchFeignService {

    @PostMapping("/search/save/saveProduct")
    R saveProduct(@RequestBody List<SkuEsModel> list);

}
